<template>
  <el-row>
    <el-col class="header" :span="24" style="padding:0 20px " type="flex">
      <span style="font-size:16px;font-weight:700">作业范围分配</span>
      <template>
        <el-button v-if="showBtn" type="primary" style="float:right; height: 40px;" @click="showBtn">编辑</el-button>
        <template v-else>
          <el-button v-if="showBtn" type="primary" style="float:right; height: 40px;" @click="showBtn">保存</el-button>
          <el-button v-if="showBtn" type="primary" style="float:right; height: 40px;" @click="showBtn">取消</el-button>
        </template>

      </template>
    </el-col>
    <el-col :span="24">
      <el-form ref="form" label-width="100px">
        <el-form-item label="地区关键词：">
          <el-input placeholder="请输入地区关键词" />
        </el-form-item>
      </el-form>
    </el-col>
    <el-col :span="24">
      <template>
        <el-button v-show="isShowBtn" type="primary">开始绘制</el-button>
      </template>
    </el-col>
    <el-col :span="24">
      <div class="bot" style="text-align:center">
        <baidu-map class="map" :scroll-wheel-zoom="true" :zoom="15" :center="{lng:116.404,lat:39.915}" />
      </div>
    </el-col>

  </el-row>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      isShowBtn: false
    }
  },
  created() {},
  methods: {
    showBtn() {
      this.isShowBtn = true
    }
  }
}
</script>
<style lang="scss" scoped>
.el-col{
  background: #fff;
  padding:  0 20px 20px 20px;
}
.header{
  background:#f8faff ;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.el-form{
  padding-top: 20px;
  // padding-left: 25px;
  .el-input{
    width: 200px;
  }
}
.map{
  height: 700px;
}

</style>
